<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>拦截浏览器后退示例</title>
    <!-- 引入 WeUI CDN 链接 -->
    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.3.0/weui.min.css"/>
    <!-- 引入 JQuery CDN 链接 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <!-- 引入 WeUI.js CDN 链接 -->
    <script type="text/javascript" src="https://res.wx.qq.com/t/wx_fed/cdn_libs/res/weui/1.2.3/weui.min.js"></script>
    <!-- 引入 东证JS-SDK CDN 链接 -->
    <script type="text/javascript">
    if (navigator.userAgent.indexOf('(Royal Flush; Qs)') > -1) {
      __POWERED_BY_OEMAPP__=true;
      document.write('<script type="text/javascript" src="https://h5itest1.dfzq.com.cn/open/oem-jsbridge-1.2.0.js?d='+ Math.ceil(Math.random()*999999) +'"><\/script>');
    }
    else{
      __POWERED_BY_OEMAPP__=false;
      document.write('<script type="text/javascript" src="https://h5itest1.dfzq.com.cn/open/dfzq-jsbridge-2.0.6.js?d='+ Math.ceil(Math.random()*999999) +'"><\/script>');
    }
    </script>
  </head>
  <body>
    <div class="page">
      <div class="weui-form">
        <div class="weui-form__text-area">
          <h2 class="weui-form__title">DEMO</h2>
          <div class="weui-form__desc">本页面为拦截浏览器后退的示例参考</div>
        </div>
        <div class="weui-form__control-area">
          <div class="weui-cells__group weui-cells__group_form">
            <div class="weui-cells__title">点我也可以后退</div>
            <div class="weui-cells">
              <label class="weui-cell weui-cell_active">
                <a id="btnBack" href="#button_default" role="button" class="weui-btn weui-btn_default">后退</a>
              </label>
            </div>
          </div>
        </div>

        <div class="weui-form__extra-area">
          <div class="weui-footer">
            <p class="weui-footer__links">
            </p>
            <p class="weui-footer__text">Copyright © 2022-2028 大前端团队</p>
          </div>
        </div>
      </div>
    </div>
  </body>
  <!-- 引入 VConsole CDN 链接 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.15.0/vconsole.min.js"></script>
  <script>
    var vConsole = new window.VConsole();
  </script>
  <!-- 引入 example js -->
  <script src="./js/example.js?d=20230720"></script>
</html>